package com.example.demo;

import com.example.demo.util.StringUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 启动类
 * @author zyc
 */
@SpringBootApplication
@ServletComponentScan
public class WebMybatisApplication {

    private static Logger logger = LoggerFactory.getLogger(WebMybatisApplication.class);

    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(WebMybatisApplication.class, args);
        String str = StringUtil.strMultiplication("=", 80);
        logger.info(str + "服务启动完毕" + str);
    }

}
